//
//  SEGPictorialManager.h
//  ExcellentHome
//
//  Created by Sam on 16/8/22.
//  Copyright © 2016年 陈区. All rights reserved.
//
#import "QuizTypeDetailmodel.h"
#import "SEGCommentListModel.h"
#import "SEGPictorialDetailAdListModel.h"
#import "SEGPictorialDetailCommentListModel.h"
#import "SEGPictorialDetailModel.h"
#import "SEGPictorialDetailPraiseListModel.h"
#import "SEGPictorialDetailShowDownModel.h"
#import "SEGPictorialDoLogicModel.h"
#import "SEGPictorialShowModel.h"
#import <Foundation/Foundation.h>

#import <UIKit/UIKit.h>
//typedef void (^SEGRequestCallBack)(BOOL isSuccessed, NSString* codeType, NSString* errorMessage);

@interface SEGPictorialManager : NSObject
///  数据原始数据源
@property (nonatomic, strong) NSArray<SEGPictorialModel*>* dataSourcePictorial;

///  处理过以后展示的数据源
@property (nonatomic, strong) NSArray<SEGPictorialShowModel*>* dataSourceShowPic;
///  问题类型详情数据源
@property (nonatomic, strong) QuizTypeDetailmodel* dataSourceQuizTypeDetail;
///  画报详情的数据源
@property (nonatomic, strong) SEGPictorialDetailModel* dataSourcePictorialDetail;
///  点赞数据源
@property (nonatomic, strong) NSArray<SEGPictorialDetailPraiseListModel*>* dataSourcePraiseList;
///  评论数据源
@property (nonatomic, strong) NSArray<SEGPictorialDetailCommentListModel*>* dataSourceCommentList;
///  广告数据源
@property (nonatomic, strong) NSArray<SEGPictorialDetailAdListModel*>* DataSourceAdList;
///  记录首页弹出广告
@property (nonatomic, strong) NSArray<SEGPictorialDetailAdListModel*>* DataSourceAdList_Jump;

@property (nonatomic, strong) NSArray<SEGPictorialDetailShowDownModel*>* dataSourceDown;

@property (nonatomic, strong) SEGCommentListModel* seg_CommentList;

///  画报详情列表底部数据源
@property (nonatomic, strong) NSArray<SEGPictorialDoLogicModel*>* seg_segpictorialdologicmodel;

///  请求画报接口
- (void)requestPictorialFinished:(SEGRequestCallBack)finished;

///  请求画报接口
///  @param quizTypeId 画报类型
- (void)requestPictorialWithquizTypeId:(NSString*)quizTypeId Finished:(SEGRequestCallBack)finished;

///  画报列表
///
///  @param type        类型 1 画报 5活动 不传默认是画报
///  @param actIndex    活动位置 最热活动 10000 最新活动 10001 悬赏活动 10002
///  @param pageNo      当前页码
///  @param pageSize    每页展示大小
///  @param quizTypeId  画报类型
///  @param isRecommend 是否推荐 0不推荐 1推荐
- (void)requestpictoriaListByType:(NSString*)type ActIndex:(NSString*)actIndex PageNo:(NSInteger)pageNo PageSize:(NSInteger)pageSize QuizTypeId:(NSString*)quizTypeId IsRecommend:(NSString*)isRecommend Finished:(SEGRequestCallBack)finished;

///  画报详情接口
///  @param quizTypeId 画报ID
- (void)requestPictorialDetailWithPictorialId:(NSString*)pictorialId Finished:(SEGRequestCallBack)finished;

///  获取问题类型详情
///  @param quizTypeId 问题类型详情
- (void)requestQuizTypeDetailWithQuizTypeId:(NSString*)quizTypeId Finished:(SEGRequestCallBack)finished;

///  点击“换”按钮 进行内容变换
- (void)exchangeContent;

///  根据业务对象ID获取对应操作人员的列表
///
///  @param objId    对象ID
///  @param objType  对象类型 1画报 2 问题 3 评论 4 问题答案
///  @param type     操作类型 1 为点赞 2为浏览 3为收藏
- (void)requestPictorialFindPraiseListById:(NSString*)objId ObjType:(NSString*)objType Type:(NSString*)type Finished:(SEGRequestCallBack)finished;

///  根据业务ID和业务类型分页获取评论列表
///
///  @param objId    被评论主题的ID
///  @param objType  被评论主题的类型
///  @param pageNo   当前页码
///  @param pageSize 每页大小
- (void)requestPictorialcommentListByObjID:(NSString*)objId ObjType:(NSString*)objType pageNo:(NSInteger)pageNo pageSize:(NSInteger)pageSize Finished:(SEGRequestCallBack)finished;

///  广告信息列表
///
///  @param positionType  广告类型
- (void)requestpictoriaAdvlistBypositionType:(SEGAdvlistType)positionType Finished:(SEGRequestCallBack)finished;
- (void)showPicDown;
- (void)doLogic_PictoriaDetail;

///  新增评论
///
///  @param objId          评论主题对象ID
///  @param objType        评论主题对象类型 1画报 2问题 3评论 4问题答案 9闲置2手 10 闲置出借
///  @param commentContent 评论内容
///  @param userId         评论者的用户ID
///  @param creator        评论者的创建者NICK
///  @param byReviewId     被回评者对象ID byReviewId、byReviewNick：回复的是主贴，两个字段不传
///  @param byReviewNick   被回评者对象的昵称byReviewId、byReviewNick：回复的是主贴，两个字段不传
///  @param byReviewUserId 被回评者对象的用户ID，即记录创建者的用户Id byReviewUserId：回复的是主贴，回复评论的评论，字段一定要传，内容：［话题、PGC］不传内容，其他的都传
///  @param communityName  城市+小区名称
///  @param communityId    小区ID
///  @param objSendUserId  对象发布者ID，例如 闲置则为闲置的发布人ID,二手则为2手的发布者ID，画报没有发布人则为-1
///  @param objPicUrlForMsg  消息图片 主要是 2手 闲置 帮帮
///  @param objTitleForMsg  消息标题,如果是对PGC或者话题等系统发起的 objTitleForMsg为对应的标题，帮帮则为帮帮的标题（即问题的内容）否则objTitleForMsg为 评论内容
///  @param parentObjType   枚举值 SEGUserType
- (void)requestpictoriaCommentSaveByobjId:(NSString*)objId
                                  objType:(NSString*)objType
                           commentContent:(NSString*)commentContent
                                   userId:(NSString*)userId
                                  creator:(NSString*)creator
                               byReviewId:(NSString*)byReviewId
                          sourceCommentId:(NSString*)sourceCommentId
                             byReviewNick:(NSString*)byReviewNick
                           byReviewUserId:(NSString*)byReviewUserId
                            communityName:(NSString*)communityName
                              communityId:(NSString*)communityId
                            objSendUserId:(NSString*)objSendUserId
                          objPicUrlForMsg:(NSString*)objPicUrlForMsg
                           objTitleForMsg:(NSString*)objTitleForMsg
                              parentObjId:(NSString*)parentObjId
                                pramsType:(NSInteger)pramsType
                            parentObjType:(NSInteger)parentObjType
                                 Finished:(SEGRequestCallBack)finished;


///  取消点赞或收藏
///
///  @param userId          用户ID
///  @param objId           被取消对象ID
///  @param objType         被取消对象类型
///  @param type            操作类型 1:点赞  2:浏览
- (void)requestCancelPraiseOrCollectByUserId:(NSString*)userId
                                       objId:(NSString*)objId
                                     objType:(NSString*)objType
                                        type:(NSString*)type
                                    Finished:(SEGRequestCallBack)finished;

///  根据pgcID查询PGC推荐列表
///
///  @param type        pgc内容的type
///  @param pictorialId pgc内容的pictorialId
- (void)requestPgclListByIdBytype:(NSString*)type pictorialId:(NSString*)pictorialId Finished:(SEGRequestCallBack)finished;
///  根据pgcID查询PGC推荐列表
@property (nonatomic, strong) NSArray<SEGPictorialModel*>* seg_PgclList;




@end
